package com.ruoyi.books.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.books.mapper.BooksPerformanceVideoMapper;
import com.ruoyi.books.domain.BooksPerformanceVideo;
import com.ruoyi.books.service.IBooksPerformanceVideoService;

/**
 * 非遗演视频Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-03-31
 */
@Service
public class BooksPerformanceVideoServiceImpl implements IBooksPerformanceVideoService 
{
    @Autowired
    private BooksPerformanceVideoMapper booksPerformanceVideoMapper;

    /**
     * 查询非遗演视频
     * 
     * @param performanceVideoId 非遗演视频主键
     * @return 非遗演视频
     */
    @Override
    public BooksPerformanceVideo selectBooksPerformanceVideoByPerformanceVideoId(Long performanceVideoId)
    {
        return booksPerformanceVideoMapper.selectBooksPerformanceVideoByPerformanceVideoId(performanceVideoId);
    }

    /**
     * 查询非遗演视频列表
     * 
     * @param booksPerformanceVideo 非遗演视频
     * @return 非遗演视频
     */
    @Override
    public List<BooksPerformanceVideo> selectBooksPerformanceVideoList(BooksPerformanceVideo booksPerformanceVideo)
    {
        return booksPerformanceVideoMapper.selectBooksPerformanceVideoList(booksPerformanceVideo);
    }

    /**
     * 新增非遗演视频
     * 
     * @param booksPerformanceVideo 非遗演视频
     * @return 结果
     */
    @Override
    public int insertBooksPerformanceVideo(BooksPerformanceVideo booksPerformanceVideo)
    {
        return booksPerformanceVideoMapper.insertBooksPerformanceVideo(booksPerformanceVideo);
    }

    /**
     * 修改非遗演视频
     * 
     * @param booksPerformanceVideo 非遗演视频
     * @return 结果
     */
    @Override
    public int updateBooksPerformanceVideo(BooksPerformanceVideo booksPerformanceVideo)
    {
        return booksPerformanceVideoMapper.updateBooksPerformanceVideo(booksPerformanceVideo);
    }

    /**
     * 批量删除非遗演视频
     * 
     * @param performanceVideoIds 需要删除的非遗演视频主键
     * @return 结果
     */
    @Override
    public int deleteBooksPerformanceVideoByPerformanceVideoIds(Long[] performanceVideoIds)
    {
        return booksPerformanceVideoMapper.deleteBooksPerformanceVideoByPerformanceVideoIds(performanceVideoIds);
    }

    /**
     * 删除非遗演视频信息
     * 
     * @param performanceVideoId 非遗演视频主键
     * @return 结果
     */
    @Override
    public int deleteBooksPerformanceVideoByPerformanceVideoId(Long performanceVideoId)
    {
        return booksPerformanceVideoMapper.deleteBooksPerformanceVideoByPerformanceVideoId(performanceVideoId);
    }
}
